 <div class="main-container" id="main-container1">
   <div class="row">
        <div class="col-sm-12" id="move">
            <div class="widget-box widget-color-blue2" id="sum_box">
                <div class="widget-header">
                    <h4 class="widget-title">详细设置控制权限</h4>
                    <span class="widget-toolbar">
                        <a href="#" data-dismiss="modal" style="font-size: 16pt;">
                            <i class="ace-icon fa fa-times white" id="btn_close"></i>
                        </a>
                    </span>
                </div>
                <div class="widget-body">
                      <form action="" id="detail_form" method="post" class="definewidth m20">
                      <table class="table table-bordered table-hover definewidth m10">
                        <thead>
                            <tr>

                                <th>参数名</th>
                                <th>是否可看</th>
                                <th class="hidden-480">是否可控</th>

                            </tr>
                        </thead>

                        <tbody>
                            <volist name="device_list" id="vo">
                            <tr>

                                 <td>
                                     <label class="position-relative">
                                       {$vo.parm_name}
                                    </label>
                                </td>

                                <td>
                                <label class="position-relative">
                                        <input type="checkbox" class="ace"  name="data[{$vo.id}_1]" <if condition="$vo.control_status egt 1"> checked="true" </if> />
                                        <span class="lbl"></span>
                                </label>
                                </td>
                                <td >
                                <if condition="$vo.is_control egt 20 or $vo.is_control eq 0">
                                 <label class="position-relative">
                                        <input type="checkbox" class="ace" name="data[{$vo.id}_2]" <if condition="$vo.control_status egt 2"> checked="true" </if> />
                                        <span class="lbl"></span>
                                    </label>
                                 </if>
                                </td>
                            </tr>
                            </volist>
                        </tbody>
                        </table>

                        <div style="text-align: center;margin-top:30px;">
                            <input type="hidden" name="cpn_id" value="{$cpn_id}">
                            <input type="hidden" name="id" value="{$id}">
                            <input type="hidden" name="class_id" value="{$class_id}">
                            <input type="hidden" name="type" value="{$type}">
                           <input type="button" class="btn btn_primary" id="sub" name="sub" value="设置" onclick="onSetParam()"/>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                           <input type="reset" class="btn btn-success" data-dismiss="modal" value="取消" />
                        </div>
                      </form>
                </div>
            </div>
   </div>
 </div>



    <script type="text/javascript">

      var root_url = "__ROOT__";
      var public_url = "__PUBLIC__";


      function onSetParam(){
          var url = root_url+"/web/SetAuthority/setDetail";
          var d= $("#detail_form").serialize();
          $.post(url, d, function (result) {
              alert("设置成功");
               $('#ajax').modal('hide');
          },
          "text");
      }

     </script>